<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TEST :: Stove Loader</title>
	<script src="./js/importlibs.js"></script>
    <script type="text/javascript">
		window.onload = function()
		{
			
			var _urlTextFile = "./text/sample.txt";
			var _urlXMLFile = "./text/sample.txt";
			
			/*
			var _urlTextFile = "http://dogking88.cafe24.com/stovelib/example/text/sample.txt";
			var _urlXMLFile = "http://dogking88.cafe24.com/stovelib/example/text/sample.xml";
			*/
			function onComplete1( text )
			{
				STICKER.log( "1",text );
			}
			function onComplete2( text )
			{
				STICKER.log( "2",text );
			}
			function onComplete3( xmlDom )
			{
				STICKER.log( "3",xmlDom );
			}
			var _loader;
			// Text + 동기
			_loader = new STTextLoader();
			_loader.load( "GET", _urlTextFile, true, { onComplete: onComplete1 } );
			
			// Text + 비동기
			_loader = new STTextLoader();
			_loader.load( "GET", _urlTextFile, true, { onComplete: onComplete2 } );
			
			// XML + 비동기
			_loader = new STXMLLoader();
			_loader.load( "GET", _urlXMLFile, true, { onComplete: onComplete3 } );
		}
	</script>
</head>

<body>
</body>
</html>
